package com.slipper.core.database.vo;

public class DataVO {
    public static final String TYPE_BACKUP_INFO = "backup-info";
    public static final String TYPE_TABLE = "table";
    public static final String TYPE_AFFIX = "affix";
    public static final String TYPE_TABLE_MAP_DATA = "table-map-data";

    public static final String TYPE_MODEL = "model";
    public static final String TYPE_SCRIPT = "script";
    public static final String TYPE_VIEW = "view";
    public static final String TYPE_PAGE = "page";
    public static final String TYPE_DICTIONARY = "dictionary";
    public static final String TYPE_SUBSYSTEM = "subsystem";
    public static final String TYPE_MENU = "menu";

    private String type;
    private String table;
    private String pkName;
    private String json;

    public DataVO(String type, String table, String pkName, String json) {
        this.type = type;
        this.table = table;
        this.pkName = pkName;
        this.json = json;
    }

    public DataVO(String type, String json) {
        this.type = type;
        this.json = json;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getPkName() {
        return pkName;
    }

    public void setPkName(String pkName) {
        this.pkName = pkName;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }
}
